﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyService.ServiceHandler
{
    
    public class Labels
    {
        /// <summary>
        /// 
        /// </summary>
        public string alertname { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string instance { get; set; }
    }

    public class Annotations
    {
        /// <summary>
        /// 
        /// </summary>
        public string summary { get; set; }
    }

    public class AlertsItem
    {
        /// <summary>
        /// 
        /// </summary>
        public string status { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public Labels labels { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public Annotations annotations { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string startsAt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string endsAt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string generatorURL { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string fingerprint { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string silenceURL { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string dashboardURL { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string panelURL { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string values { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string valueString { get; set; }
    }

    public class GroupLabels
    {
        /// <summary>
        /// 
        /// </summary>
        public string alertname { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string instance { get; set; }
    }

    public class CommonLabels
    {
        /// <summary>
        /// 
        /// </summary>
        public string alertname { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string instance { get; set; }
    }

    public class CommonAnnotations
    {
        /// <summary>
        /// 
        /// </summary>
        public string summary { get; set; }
    }

    public class GranafaHttp
    {
        /// <summary>
        /// 
        /// </summary>
        public string receiver { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string status { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<AlertsItem> alerts { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public GroupLabels groupLabels { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public CommonLabels commonLabels { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public CommonAnnotations commonAnnotations { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string externalURL { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string version { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string groupKey { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int truncatedAlerts { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int orgId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string title { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string state { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string message { get; set; }
    }
}
